package com.safeluck.scannerqcr;

import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.view.WindowManager;

import com.safeluck.scannerqcr.fragment.MainFragment;

import me.yokeyword.fragmentation.SupportActivity;

/**
 * ScannerQCR
 *
 * @author lzw
 * @date 2017/11/28
 * 邮箱：632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */

public class EnterAct extends SupportActivity {
    @Override
    public void onBackPressedSupport() {
        super.onBackPressedSupport();
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
        setContentView(R.layout.activity_enter);
        if (findFragment(MainFragment.class) == null){
            loadRootFragment(R.id.wechat_activity_main,MainFragment.newInstance());
        }
    }
}
